startIntentSenderFromFragment

open fun startIntentSenderFromFragment(@NonNull fragment: Fragment, @NonNull intent: IntentSender, requestCode: Int, @Nullable fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int, @Nullable options: Bundle)(source)

Deprecated

Fragments should use registerForActivityResult with the StartIntentSenderForResult contract. This method will still be called when Fragments call the deprecated startIntentSenderForResult() method.

Called by Fragment.startIntentSenderForResult() to implement its behavior.

Parameters

fragment

the Fragment to start the intent sender from.

intent

The IntentSender to launch.

requestCode

The request code to be returned in onActivityResult when the activity exits. Must be between 0 and 65535 to be considered valid. If given requestCode is greater than 65535, an IllegalArgumentException would be thrown.

fillInIntent

If non-null, this will be provided as the intent parameter to sendIntent. This value may be null.

flagsMask

Intent flags in the original IntentSender that you would like to change.

flagsValues

Desired values for any bits set in flagsMask.

extraFlags

Always set to 0.

options

Additional options for how the Activity should be started. See startActivity for more details. This value may be null.

Throws

if the call fails to execute.